<?php
include("GifFrameExtractor.php");

$gfe = new GifFrameExtractor();
$gfe->extract('1.gif', true);
$frameImages = $gfe->getFrameImages();
$frameDurations = $gfe->getFrameDurations();

var_dump($frameDurations);

$i = 0;
foreach ($frameImages as $image) {
    imagejpeg($image, $i.".jpeg");
    $i++;
}

